import request from '@/utils/request'

// 查询设施信息列表
export function listFacilityInfo(query) {
  return request({
    url: '/facilityInfo/facilityInfo/list',
    method: 'get',
    params: query
  })
}

// 查询设施信息详细
export function getFacilityInfo(facilityId) {
  return request({
    url: '/facilityInfo/facilityInfo/' + facilityId,
    method: 'get'
  })
}

// 新增设施信息
export function addFacilityInfo(data) {
  return request({
    url: '/facilityInfo/facilityInfo',
    method: 'post',
    data: data
  })
}

// 修改设施信息
export function updateFacilityInfo(data) {
  return request({
    url: '/facilityInfo/facilityInfo',
    method: 'put',
    data: data
  })
}

// 删除设施信息
export function delFacilityInfo(facilityId) {
  return request({
    url: '/facilityInfo/facilityInfo/' + facilityId,
    method: 'delete'
  })
}
